import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { NgModule } from '@angular/core';
import { HttpClientModule } from '@angular/common/http';
import {CommonModule,HashLocationStrategy , LocationStrategy} from '@angular/common';
import { FormsModule,ReactiveFormsModule  } from '@angular/forms';
import { HttpModule,JsonpModule} from '@angular/http';
import { RouterModule } from '@angular/router';
import { GetMusicService } from '../providers/getMusic';
import { GlobalService } from '../providers/global.service';
import { UploadService } from '../providers/upload.service';
import { UserService } from "./user/user.service";
import { MsgService } from '../providers/message.service';
import {Timefromnowpipe} from "../providers/moment.pipe";
import { AppComponent } from './app.component';
import { WelcomeComponent } from "./home/welcome/welcome.component";
import { HelpComponent } from "./home/help/help.component";
import { LoginComponent } from "./home/login/login.component";
import { SignupComponent } from "./home/signup/signup.component";
import { MessageComponent } from "./home/message/message.component";
import { OtherComponent } from "./home/other/other.component";
import 'hammerjs';
import { AlertModule } from 'ngx-bootstrap/alert';
import {appRoutes} from './app.routes';
import {DataScrollerModule} from 'primeng/primeng';
import { NgZorroAntdModule } from 'ng-zorro-antd';
import { BsDropdownModule } from 'ngx-bootstrap/dropdown';
@NgModule({
  declarations: [
    AppComponent,
    LoginComponent,
    SignupComponent,
    WelcomeComponent,
    MessageComponent,
    HelpComponent,
    OtherComponent,
    Timefromnowpipe,
    
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    CommonModule,
    RouterModule.forRoot(appRoutes),
    DataScrollerModule,
    FormsModule,
    ReactiveFormsModule,
    HttpClientModule,
    HttpModule,
    JsonpModule,
    AlertModule.forRoot(),
    BsDropdownModule.forRoot(),
    NgZorroAntdModule.forRoot()
  ],
  entryComponents:[
  ],
  providers: [{provide: LocationStrategy, useClass: HashLocationStrategy},GetMusicService,GlobalService,UserService,MsgService,UploadService],
  bootstrap: [AppComponent]
})
export class AppModule { }
